package com.coolingme.genericity;

/**
 * 对象类
 *
 * @author wangyue
 * @date 2019/4/4 10:35
 */
public class GObject {

    private Object object;

    public GObject(Object object) {
        this.object = object;
    }

    public void hello() {
        System.out.println("object的类型为:" + object.getClass().getName());
    }

    @Override
    public String toString() {
        return "GObject{" +
                "object=" + object +
                '}';
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
